package sms.entity;

import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Data
public class Student_info {
    @Id
    private Integer id;
    private Integer student_id;
    private String class_id;
    private String real_name;
    private String gender;
    @ManyToOne
    @JoinColumn(name = "user_id")
    private User user;     // 关联用户
    @ManyToOne
    @JoinColumn(name = "class_info_id")
    private Class classInfo; // 关联班级
}
